package com.wangzh.network.tcp.uploadthread;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;

public class Server {
    public static void main(String[] args) throws IOException {
        ServerSocket ss = new ServerSocket(10000);

        while (true){
            //等待客户端连接
            Socket socket = ss.accept();
            new Thread(new MyRunnable(socket)).start();
        }
    }
}
